package com.jl.jlapp.adapter;

import android.content.res.Resources;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jl.jlapp.R;
import com.jl.jlapp.eneity.EvaluateTypeModel;
import java.util.List;

public final class EvaluateClassifyAdapter
  extends BaseQuickAdapter<EvaluateTypeModel, BaseViewHolder>
{
  int clickItemNum = 0;
  
  public EvaluateClassifyAdapter(int paramInt, @Nullable List<EvaluateTypeModel> paramList)
  {
    super(paramInt, paramList);
  }
  
  protected void convert(BaseViewHolder paramBaseViewHolder, EvaluateTypeModel paramEvaluateTypeModel)
  {
    TextView localTextView1 = (TextView)paramBaseViewHolder.getView(R.id.tv_evaluate_type);
    TextView localTextView2 = (TextView)paramBaseViewHolder.getView(R.id.tv_evaluate_num);
    paramBaseViewHolder.setText(R.id.tv_evaluate_type, paramEvaluateTypeModel.getType());
    paramBaseViewHolder.setText(R.id.tv_evaluate_num, paramEvaluateTypeModel.getEvaluate_num());
    if (paramBaseViewHolder.getLayoutPosition() == this.clickItemNum)
    {
      localTextView1.setTextColor(paramBaseViewHolder.itemView.getResources().getColor(R.color.trans_333333));
      localTextView2.setTextColor(paramBaseViewHolder.itemView.getResources().getColor(R.color.trans_333333));
      return;
    }
    localTextView1.setTextColor(paramBaseViewHolder.itemView.getResources().getColor(R.color.moreText));
    localTextView2.setTextColor(paramBaseViewHolder.itemView.getResources().getColor(R.color.moreText));
  }
  
  public void setClickItemNum(int paramInt)
  {
    this.clickItemNum = paramInt;
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/adapter/EvaluateClassifyAdapter.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */